<?php
class Item_section_color_model extends MY_Model{
	function __construct(){
		parent::__construct();
		$this->loadfields();
	}
	
	
	function getColorListBySection($itemsectionid = ""){
		if($itemsectionid != ""){
			$this->db->select("*");
			$this->db->where("obj.item_section_id", $itemsectionid);
			$this->db->join("item_color ic" , "ic.id = obj.item_color_id" , "inner");
			$result = $this->db->get($this->table()." as obj");
			return $result->result_array();
		}
	}
}